package entity;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@XmlRootElement(name = "item")
public class Item implements Serializable {
    private String tagCode;
    private String tagValue;
    private String timeStamp;

    public Item(){}
    public Item(String tagCode, String tagValue, String timeStamp){
        this.tagCode = tagCode;
        this.tagValue = tagValue;
        this.timeStamp = timeStamp;
    }

    @XmlAttribute
    public String getTagCode() {
        return tagCode;
    }

    public void setTagCode(String tagCode) {
        this.tagCode = tagCode;
    }

    @XmlAttribute
    public String getTagValue() {
        return tagValue;
    }

    public void setTagValue(String tagValue) {
        this.tagValue = tagValue;
    }

    @XmlAttribute
    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }
}
